package com.woniuxy.yoga.product.dao.mapper;

import com.woniuxy.yoga.product.dao.model.TeamProduct;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

/**
 * <p>
 * 团课产品表 Mapper 接口
 * </p>
 *
 * @author 韦用文,刘存益,郎腾霄
 * @since 2023年11月28日
 */
@Mapper
public interface TeamProductMapper extends BaseMapper<TeamProduct> {

    /**
     * 插入菜单信息 将主键信息赋值给参数对象上
     * @param menu
     * @return
     */
    @Insert("insert into team_product values(null,#{storeId},#{teamProductName},#{teamProductImage},#{coachId},#{coachName},#{teamMax},#{openTime},#{openNum},#{bookNum},#{hourCount},#{courseTypeId},#{courseTypeName},#{teamProductRemarks},#{teamProductPrice},#{teamProductState})")
    @Options(useGeneratedKeys = true,keyProperty = "teamProductId",keyColumn = "team_product_id")
    Integer insertTeamProduct(TeamProduct teamProduct);
}
